package com.ochnas.volunteersignup.domain;


public class Time {
	
	/**
	 * hourOfDay ranges from 0 to 23, where midnight is represented by 0.
	 */
	private int hourOfDay;
	
	/**
	 * minutes ranges from 0 to 59.
	 */
	private int minutes;
	
	/**
	 * No-argument constructor.
	 */
	public Time() {
		super();
	}
	
	/**
	 * Time-defined constructor.
	 * @param hourOfDay
	 * @param minutes
	 */
	public Time(int hourOfDay, int minutes) {
		super();
		this.hourOfDay = hourOfDay;
		this.minutes = minutes;
	}

	/**
	 * Method to return hour of the day
	 * @return int
	 */
	public int getHourOfDay() {
		return hourOfDay;
	}
	
	/**
	 * Method to set hour of the day
	 * @param hourOfDay
	 */
	public void setHourOfDay(int hourOfDay) {
		this.hourOfDay = hourOfDay;
	}
	
	/**
	 * Method to return minutes of the hour
	 * @return int
	 */
	public int getMinutes() {
		return minutes;
	}
	
	/**
	 * Method to set minutes of the hour
	 * @param minutes
	 */
	public void setMinutes(int minutes) {
		this.minutes = minutes;
	}
	
}
